<?php

$con = mysql_connect("localhost","root","");
mysql_set_charset('utf8',$con);
if(!$con){
	echo "Ket noi khong thanh cong";
}
mysql_select_db("for_woman",$con);

$query = "Select *
			from forwoman_loaimonan
			where sync_status=0";

$result = mysql_query($query);
$arr=array();

while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
    $arr[] = $row;
}
$arr1['post'] = $arr;

header('Content-type: application/json; charset=utf-8');
//header("Content-type: png");
echo json_encode($arr1);

?>
